package com.ktwlsoft.archivemanage.domain.dao.repository;

import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import com.ktwlsoft.archivemanage.domain.dao.entity.Department;

/**
 * department--部门
 *
 * @author zhuhe on 2019-10-24 14:19:40
 * @version 1.0
 */
@Mapper
public interface IDepartmentMapper {
	
	/**
	 * 查询列表 on 2019-10-24 14:19:40
	 * @param department department
	 * @return List<Department>
	 */
	List<Department> findList(Department department);
	
	
	/**
	 * 根据id查询信息 on 2019-10-24 14:19:40
	 * @param id id
	 * @return Department
	 */
	Department getById(Long id);
	
	
	/**
	 * 根据id删除信息 on 2019-10-24 14:19:40
	 * @param id id
	 * @return int
	 */
	int deleteById(Long id);
	
	/**
	 * 根据id集合批量删除信息 on 2019-10-24 14:19:40
	 * @param ids ids
	 * @return int
	 */
	int deleteByIds(List<Long> ids);
	


	/**
	 * 插入 on 2019-10-24 14:19:40
	 * @param department department
	 * @return int
	 */
    int insert(Department department);

	/**
	 * 更新 on 2019-10-24 14:19:40
	 * @param department department
	 * @return int
	 */
    int update(Department department);
}
